// 比赛数据相关类型定义

// 投注数据
export interface Betting {
  id: number;
  matchId: number;
  jingcaiNumber: string | null;
  beidanNumber: string;
  jingcaiSingle: string | null;
  jingcaiHandicap: string | null;
  beidanHandicap: string;
  winOdds: string;
  drawOdds: string;
  loseOdds: string;
  recommendedResult: string[] | null;
  homeScore: number | null; //主比分
  awayScore: number | null; //客比分
  matchResult: string | null;  //赛果
  predictionHit: boolean | null; // 
  createdAt: string;
  updatedAt: string;
}

// 比赛数据
export interface Match {
  id: number;
  matchTime: string;
  leagueName: string;
  homeTeam: string;
  awayTeam: string;
  homeTeamLogo: string | null;
  awayTeamLogo: string | null;
  externalId: string;
  boldRecommendation: string;
  homeWinRate: number | null;
  awayWinRate: number | null;
  remarks: string | null;
  createdAt: string;
  updatedAt: string;
  bettings: Betting[];
}

// 比赛列表响应数据
export interface MatchListData {
  data: Match[];
  total: number;
  page: number;
  pageSize: number;
  totalPages: number;
}

// 比赛列表请求参数
export interface MatchListParams {
  page?: number;
  pageSize?: number;
  dateFilter?: 'current' | 'historical';
  recommendationStatus?: 'recommended' | 'pending';
}

// 比赛列表API响应
export type MatchListResponse = import('./auth').ApiResponse<MatchListData>;